Burst\Admin\Statistics\Statistics D

Total Complexity 247
Dependencies 2
Dependents 4
Total lines 2,241
Lines of code 1,421
Logical lines of code 669
Comment lines 540
Methods 56
Properties 3

Methods 56

Method Rating Maintainability Complexity Lines of code
get_sql_select_for_metric()
D
35 32 76
get_dashboard_widget_statistics()
B
36 13 91
get_sql_select_for_metrics()
A
45 14 39
get_where_clause_for_filters()
A
42 11 51
execute_data_query()
A
40 8 71
get_insights_data()
A
41 9 55
format_number()
A
47 9 35
install_statistics_table()
A
39 5 86
get_base_data()
A
47 8 38
get_devices_subtitle_data()
A
40 6 66
get_devices_title_and_value_data()
A
41 5 64
build_raw_sql()
S
49 7 27
get_insights_date_modifiers()
S
46 6 35
get_today_data()
S
42 4 63
build_select_clause()
S
53 6 21
resolve_join_dependencies()
S
56 6 20
get_datatables_data()
S
44 4 45
build_where_clause()
S
57 6 15
update_page_visit_counts()
S
48 5 30
can_use_summary_tables()
S
60 6 13
get_lookup_table_name_by_id()
S
54 5 20
detect_needed_joins()
S
57 5 15
get_compare_goals_data()
S
40 1 75
build_having_clause()
S
60 5 12
get_sql_table_enhanced()
S
51 4 26
get_metric_color()
S
51 3 31
build_order_by_clause()
S
59 3 15
calculate_comparison_dates()
S
61 3 13
get_compare_data()
S
47 1 43
get_post_views()
S
61 3 11
clear_test_visit()
S
55 2 21
select_contains_parameters()
S
72 3 4
format_uplift()
S
67 3 7
select_contains_referrer()
S
72 3 4
build_group_by_clause()
S
64 3 10
calculate_uplift_status()
S
64 3 10
calculate_ratio()
S
67 3 7
build_join_sql()
S
61 2 11
build_join_clauses()
S
54 1 23
get_sql_table()
S
58 1 16
get_live_visitors_data()
S
57 1 16
exclude_bounces()
S
70 2 6
use_lookup_tables()
S
71 2 6
get_nr_of_periods()
S
70 2 5
convert_date_to_unix()
S
68 2 6
get_summary_sql()
S
63 1 11
calculate_uplift()
S
75 1 4
calculate_conversion_rate()
S
79 1 3
convert_unix_to_date()
S
70 1 6
get_wp_timezone_offset()
S
72 1 5
get_mysql_timezone_offset()
S
63 1 9
get_referrers_sql()
S
66 1 7
get_conversions()
S
71 1 5
get_bounces()
S
71 1 5
get_data()
S
68 1 6
init()
S
69 1 6